﻿using DeviceMaintainGIS.BLL.Repair;
using DeviceMaintainGIS.Model;
using DeviceMaintainGIS.Model.Repair;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace DeviceMaintainGIS.Controllers
{
    /// <summary>
    /// 报修扩展
    /// </summary>
    public class RepairHandleExtendController : ApiController
    {

        /// <summary>
        /// 结束报修流程
        /// </summary>
        /// <param name="value"></param>
        public ReturnMessageVM Post([FromBody]RepairEndRequest request)
        {
            return new RepairService().RepairEnd(request);
        }
        /// <summary>
        /// 获取新的RepairId
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public string Get([FromUri]string request)
        {
            return new RepairService().GetNewRepairId(request);
        }

    }
}
